
// 全局组件注册
import Vue from "vue"

import foot from "@/components/foot"
import myHead from "@/components/myHead"
import mySearch from "@/components/mySearch"
import myList from "@/components/myList"
import newList from "@/components/newList"
import cinemaList from "@/views/cinemas/cinemaList"
import mySwipe from "@/components/mySwipe"
import mySwipeItem from "@/components/mySwipeItem"

Vue.component("myHead",myHead)
Vue.component("foot",foot)
Vue.component("mySearch",mySearch)
Vue.component("myList",myList)
Vue.component("newList",newList)
Vue.component("cinemaList",cinemaList)
Vue.component("mySwipe",mySwipe)
Vue.component("mySwipeItem",mySwipeItem)

import moment from "moment"

Vue.filter("dateFormat",(value)=>{
    if(!value) return value;
    return moment(value*1000).format('YYYY-MM-DD')
})